//
//  HMDemoViewController.swift
//  SinaWeiBo
//
//  Created by immncjykeny on 2017/4/25.
//  Copyright © 2017年 immncjykeny. All rights reserved.
//

import UIKit

class HMDemoViewController: HMBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        title = "第\(navigationController?.childViewControllers.count ?? 0)个控制器"
    }
    func showNext(){
        print(#function)
        let vc = HMDemoViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
    
}
extension HMDemoViewController{
    override func setupTableView() {
    super.setupTableView()

       navigaItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", fontSize: 16, action: #selector(showNext), target: self)
    }
}
